<script setup>
const data = {
  name:'小米',
  url:"http://www.xiaomi.com",
  logo:"http://www.xiaomi.com/images/index_new/logo.png"
}
</script>

<template>
  <div>
   <a
      v-bind:href='data.url'
      target="_self"><!-- _self 当前窗口打开-->
    <img alt=""
       :src="data.logo"
       :title="data.name">
    <br>
    <input type="button"
                    :value="`点击访问${data.name}`">
   </a>
  </div>
</template>

<style scoped>

</style>